package com.server.questionbank.snframe.domain.ResDTO;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {
    private List<T> list;       // 当前页数据
    private Long pageNum;        // 当前页码
    private Long pageSize;       // 每页大小
    private Long total;          // 总页数

    public PageResult() { }
    // 构造方法
    public PageResult(List<T> list, Long total, Long pageNum, Long pageSize) {
        this.list = list;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
    }
}
